package com.example.MyThread.ThreadTest03;

import java.util.concurrent.Callable;

/**
 * @author Jason
 * @PACKAGE_NAME com.example.MyThread.ThreadTest03
 * @Description
 * @date 2023-12-10 19:07
 */
public class MyCallable implements Callable<Integer> {
    @Override
    public Integer call() throws Exception {
        //1+100的和
        int sum = 0;
        for (int i = 1; i <= 100; i++) {
            sum += i;
        }
        return sum;
    }
}
